package com.itheima.p3_proxy;

public class UserServiceImpl implements UserService {
    @Override
    public String login(String loginName, String passWord) {
        if ("admin".equals(loginName) && "1234".equals(passWord)) {
            return "登录成功";
        }
        return "登录名和密码可能有毛病";
    }

    @Override
    public void selectUsers() {
        /*long start = System.nanoTime();*/
        System.out.println("查询了100个用户数据！");
        /*long end = Systexwm.nanoTime();
        System.out.println("selectUsers方法执行总耗时: " + (end - start) + "纳秒");*/
    }

    @Override
    public boolean deleteUsers() {
       /* long start = System.nanoTime();*/
        System.out.println("删除100个用户数据！");
        /*long end = System.nanoTime();
        System.out.println("selectUsers方法执行总耗时: " + (end - start) + "纳秒");*/
        return true;
    }

    @Override
    public void updateUsers() {
        System.out.println("修改100个用户数据！");
    }
}